package cc.mrbird.febs.mark.entity;

import cc.mrbird.febs.common.converter.TimeConverter;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wuwenze.poi.annotation.Excel;
import com.wuwenze.poi.annotation.ExcelField;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("t_railway")
@Excel("标记文本内容表")
public class Railway implements Serializable {
    private static final long serialVersionUID = -3573699148859135258L;


    public static final String SEG_YES = "1";

    public static final String SEG_NO = "0";

    public static final String ASSIGN_YES = "1";

    public static final String ASSIGN_NO = "0";

    public static final String ENTITY_YES = "1";

    public static final String ENTITY_NO = "0";


    /**
     * railway ID
     */
    @TableId(value = "RAILWAY_ID", type = IdType.AUTO)
    @ExcelField(value = "编号")
    private Long railwayId;

    @TableField("FILENAME")
    @ExcelField(value = "来源文件")
    private String fileName;

    @TableField("ORIGINCONTENT")
    @ExcelField(value = "原始文本",required = true)
    private String originContent;

    @TableField("QUESTIONCODE")
    @ExcelField(value = "问题编码")
    private String questionCode;

    @TableField("TAG")
    @ExcelField(value = "标签")
    private String tag;

    @TableField("ISSEG")
    @ExcelField(value = "是否人工校对", writeConverterExp = "0=N,1=Y")
    private String isSeg;

    //add by wgw 2019.11.12 保存结巴自动分词后的结果
    @TableField("SEGWORDSJIEBA")
    @ExcelField(value = "使用结巴分词工具自动分词后的结果纯文本格式")
    private String segWordsJieba;

    @TableField("SEGWORDS")
    @ExcelField(value = "人工校对后的分词后的结果纯文本格式")
    private String segWords;

    @TableField("SEGWORDSHTML")
    @ExcelField(value = "分词后的结果HTML格式")
    private String segWordsHtml;

    @TableField("ISENTITY")
    @ExcelField(value = "是否实体标注", writeConverterExp = "0=N,1=Y")
    private String isEntity;

    @TableField("ENTITYWORDS")
    @ExcelField(value = "实体标注后的结果纯文本格式")
    private String entityWords;

    @TableField("E1")
    @ExcelField(value = "e1")
    private String e1;

    @TableField("E2")
    @ExcelField(value = "e2")
    private String e2;

    @TableField("ENTITYWORDSFRONT")
    @ExcelField(value = "实体标注后的结果纯文本格式带转义字符")
    private String entityWordsFront;

    @TableField("ENTITYWORDSHTML")
    @ExcelField(value = "实体标注后的结果HTML格式")
    private String entityWordsHtml;

    @TableField("ISASSIGN")
    @ExcelField(value = "是否已经分配给用户", writeConverterExp = "0=N,1=Y")
    private String isAssign;

    @TableField("ISQUESTION")
    @ExcelField(value = "是否已经问答标注", writeConverterExp = "0=N,1=Y")
    private String isQuestion;

    @TableField("QUESTION")
    @ExcelField(value = "问题")
    private String question;

    @TableField("ANSWER1")
    @ExcelField(value = "答案1")
    private String answer1;

    @TableField("ANSWER2")
    @ExcelField(value = "答案2")
    private String answer2;

    @TableField("ANSWER3")
    @ExcelField(value = "答案3")
    private String answer3;

    @TableField("QAWORDSHTML")
    @ExcelField(value = "问答标注后的结果HTML格式")
    private String qaWordsHtml;

    //add by wgw  2019.11.12 为了导入学生数据
    @TableField("STU_NO")
    @ExcelField(value = "分配给的学生学号")
    private String stuNo;

    //add by wgw 2019.11.12 为了导入学生数据
    @TableField("REALNAME")
    @ExcelField(value = "分配给的学生姓名")
    private String realname;

    /**
     * 创建时间
     */
    @TableField("CREATE_TIME")
    @ExcelField(value = "创建时间", writeConverter = TimeConverter.class)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField("MODIFY_TIME")
    @ExcelField(value = "修改时间", writeConverter = TimeConverter.class)
    private Date modifyTime;

    private transient String createTimeFrom;
    private transient String createTimeTo;
}
